<#include "/common/ftl/common.ftl">
<@html>
<article class="tbcWrap">
    <div class="tbcTbar">
        <a href="${ctx!}/xheditor.do" class="btn btn-info">富文本</a>
        <a href="${ctx!}/multiUpload.do" class="btn btn-info">多附件上传</a>
        <a href="${ctx!}/index.do" class="btn btn-info">查询用户</a>
        <a href="${ctx!}/validateForm.do" class="btn btn-info">bootstrap validation</a>
    </div>
    <form class="form-horizontal form-validate" >
        <section class="tbcAutoPanel">
            <div class="tbcMainPanel">
                <fieldset>
                    <legend>登陆</legend>
                    <div class="control-group">
                        <label class="control-label" for="input01">用户名</label>

                        <div class="controls">
                            <input type="text" check-type="required" class="span2" id="input01">

                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">密码</label>

                        <div class="controls">
                            <input type="text" class="span2" id="input02">

                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">验证码</label>

                        <div class="controls">
                            <input type="text" class="span1" id="input03">
                            <img src="/randomCode.check" id="codeImg"/> <a href="javascript:void(0);"
                                                                           onclick="refresh()">看不清楚？再换一张</a>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary" >登陆</button>
                    </div>
                </fieldset>
            </div>
        </section>
    </form>
</article>

</@html>
<script type="text/javascript">
    function refresh() {
        $('#codeImg').attr('src', '/randomCode.check?__random=' + new Date().getTime());
    }


</script>